<div id='divGrid'>
<table width="90%">
<tr>
<td align="center">
[var.strResult;htmlconv=no]
</td>
</tr>
<tr>
<td align="center">
<button class="button1" onclick="saveStatus()" > Lưu</button>
</td>
</tr>
</table>
</div>
<script language="javascript">
function fn_checkedchange(id){
    var arr = id.split('_');
    var bcheck = $('#'+id).attr('checked'); 
    var id_new = '#'+arr[1]+'_'+arr[0];
    if(bcheck){
        $(id_new).attr('checked',false); 
    }  
}
function saveStatus(){    
     var strUpdate='';    
    $('INPUT[name=chkCreatePower]').each(function()
    {       str_id = $(this).attr('id');
            str_id = ',('+str_id.replace('_',',');
            if($(this).attr('checked')==false) 
            {
               strUpdate += str_id +','+'0)';      
            }else{
               strUpdate += str_id +','+'1)'; 
            }
    });
    strUpdate = strUpdate.substring(1);    
    xajax_saveStatus(strUpdate);
}
</script>